package com.aiwei.tdjk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Created by yanfeng on 2018/1/16.
 */
@NoArgsConstructor
@AllArgsConstructor
public enum CustomsHandbookUsedDetailStatusEnum {

    unDeclare(1,"已商检未报关"), declare(2,"已报关");

    @Getter
    private int code;
    @Getter
    private String info;


    public static CustomsHandbookUsedDetailStatusEnum getValue(int code) {
        final CustomsHandbookUsedDetailStatusEnum[] values = CustomsHandbookUsedDetailStatusEnum.values();
        for (CustomsHandbookUsedDetailStatusEnum value : values) {
            if (value.getCode()==code) {
                return value;
            }
        }
        return null;
    }
}
